﻿using DG.Tweening;

using UnityEngine;

public class UIRotationAnimation : UIAnimation
{
    [FieldLabel("起始角度")]
    public Vector3 startValue = Vector3.zero;

    [FieldLabel("结束大小")]
    public Vector3 endValue;
    protected override Tweener GetTweener(RectTransform rectTransform)
    {
        rectTransform.localEulerAngles = startValue;
        return rectTransform.DOScale(endValue, this.duration);
    }
}